package com.twohand.admin.Controller;

import com.twohand.admin.Dto.SwipeListQueryDto;
import com.twohand.admin.Entity.Swipe;
import com.twohand.admin.Service.SwipeService;
import com.twohand.admin.Util.PageResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@RestController
@RequestMapping("/index")
public class HomeController {
    @Autowired
    SwipeService swipeService;
    @GetMapping
    PageResponse<Swipe> getAllSwipe(@RequestBody SwipeListQueryDto swipeListQueryDto){
        return swipeService.getAllSwipe(swipeListQueryDto);
    }
}
